home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / _WindowStyle.as < prev    next >
Text File  |  2009-12-16  |  3KB  |  66 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ApplicationTitleBarBackgroundSkin;
  5.    import mx.skins.halo.StatusBarBackgroundSkin;
  6.    import mx.skins.halo.WindowBackground;
  7.    import mx.skins.halo.WindowCloseButtonSkin;
  8.    import mx.skins.halo.WindowMaximizeButtonSkin;
  9.    import mx.skins.halo.WindowMinimizeButtonSkin;
  10.    import mx.skins.halo.WindowRestoreButtonSkin;
  11.    import mx.styles.CSSStyleDeclaration;
  12.    import mx.styles.StyleManager;
  13.    
  14.    public class _WindowStyle
  15.    {
  16.        
  17.       
  18.       public function _WindowStyle()
  19.       {
  20.          super();
  21.       }
  22.       
  23.       public static function init(param1:IFlexModuleFactory) : void
  24.       {
  25.          var fbs:IFlexModuleFactory = param1;
  26.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Window");
  27.          if(!style)
  28.          {
  29.             style = new CSSStyleDeclaration();
  30.             StyleManager.setStyleDeclaration("Window",style,false);
  31.          }
  32.          if(style.defaultFactory == null)
  33.          {
  34.             style.defaultFactory = function():void
  35.             {
  36.                this.statusTextStyleName = "statusTextStyle";
  37.                this.minimizeButtonSkin = WindowMinimizeButtonSkin;
  38.                this.gripperPadding = 3;
  39.                this.borderStyle = "solid";
  40.                this.restoreButtonSkin = WindowRestoreButtonSkin;
  41.                this.closeButtonSkin = WindowCloseButtonSkin;
  42.                this.highlightAlphas = [1,1];
  43.                this.cornerRadius = 8;
  44.                this.titleBarBackgroundSkin = ApplicationTitleBarBackgroundSkin;
  45.                this.backgroundImage = WindowBackground;
  46.                this.borderThickness = 1;
  47.                this.buttonPadding = 2;
  48.                this.statusBarBackgroundColor = 13421772;
  49.                this.titleBarButtonPadding = 5;
  50.                this.buttonAlignment = "auto";
  51.                this.titleTextStyleName = "titleTextStyle";
  52.                this.borderColor = 10921638;
  53.                this.roundedBottomCorners = false;
  54.                this.titleAlignment = "auto";
  55.                this.showFlexChrome = true;
  56.                this.titleBarColors = [16777215,12237498];
  57.                this.gripperStyleName = "gripperSkin";
  58.                this.maximizeButtonSkin = WindowMaximizeButtonSkin;
  59.                this.backgroundColor = 12632256;
  60.                this.statusBarBackgroundSkin = StatusBarBackgroundSkin;
  61.             };
  62.          }
  63.       }
  64.    }
  65. }
  66.